//
//  ZZBaseNav.swift
//  QMXK
//
//  Created by jenkin on 2018/12/10.
//  Copyright © 2018年 jenkin. All rights reserved.
//

import UIKit

class ZZBaseNav: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        viewController.hidesBottomBarWhenPushed = true
        super.pushViewController(viewController, animated: animated)
        if self.viewControllers.count == 1{
            viewController.hidesBottomBarWhenPushed = false
        }
    }
}
